package com.st.service.impl;


import com.st.dao.IUserDao;
import com.st.entity.User;
import com.st.service.IUserService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class UserService implements IUserService {
    @Autowired
    private IUserDao userDao;

    @Override
    public List<User> query(User user) {
        return userDao.query(user);
    }

    @Override
    public List<User> queryPhone(String userPhone) {
        return userDao.queryPhone(userPhone);
    }

    @Override
    public Integer add(User user) {
        return userDao.add(user);
    }

    @Override
    public Integer updateMoney1(User user) {
        return userDao.updateMoney1(user);
    }
}
